package cn.itsource.ymcc.client;

import cn.itsource.ymcc.domain.Logininfo;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 认证中心openfeign接口：被调用方是认证中心的LogininfoController
 */
@FeignClient(value = "service-uaa",fallbackFactory = LogininfoClientFallbackFactory.class)
public interface LogininfoClient {

    /**
     * 保存和修改公用的
     */
    @PostMapping("/logininfo/save")
    JsonResult saveOrUpdate(@RequestBody Logininfo logininfo);
}
